package com.uni.service.impl;

import com.uni.common.util.PageBean;
import com.uni.entity.GlobalEdu;
import com.uni.mapper.GlobalEduMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GlobalEduService {
    @Autowired
    GlobalEduMapper globalEduMapper;

    public List<GlobalEdu> getGlobaleduList(PageBean pageBean){
        return globalEduMapper.getGlobaleduList(pageBean);
    }

    public Integer updateEdu(GlobalEdu professor){
        return globalEduMapper.updateEdu(professor);
    }

    public Integer countList(PageBean<GlobalEdu> pageBean){
        return globalEduMapper.countList(pageBean);
    }

    public Integer insert(GlobalEdu professor){
        return  globalEduMapper.insert(professor);
    }

    public Integer delete(@Param("ids") List<String> ids){
        return  globalEduMapper.delete(ids);
    }
}
